<!-- 开关配置 -->
<template>
    <div>
        <el-collapse accordion>
            <el-form-item label="禁用">
                <avue-switch
                    v-model="main.activeOption.disabled"
                    :disabled="disabled"
                >
                </avue-switch>
            </el-form-item>
        </el-collapse>
    </div>
</template>

<script>
import { dicOption } from "@/option/config";
export default {
    name: "switch",
    data() {
        return {
            dicOption: dicOption,
            disabled: this.contain.activeObj.isLock
        };
    },
    inject: ["main", "contain"]
};
</script>

<style></style>
